#include "IntersectResult.h"

string IntersectResult::str() const {
	if (primitive == nullptr) return string("IntersectResult(NoHit)");
	ostringstream ss;
	ss << "IntersectResult(primitive = " << primitive->str();
	ss << ", pos = " << position.str();
	ss << ", d = " << distance;
	ss << ", normal = " << normal.str() << ")";
	return ss.str();
}